<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit Image
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit Image</h2>

    <% using (Html.BeginForm()) { %>
    Title: <%= Html.TextBox("Image.Title") %><br />
    Image Url: <%= Html.TextBox("Image.ImageUrl")%><br />
	<!-- Begin: added only for Exercise 3 -->
    License: <%= Html.DropDownList("Image.License.Id", (SelectList)ViewData["AvailableLicenses"], "Select license...")%><br />
	<!-- End: added only for Exercise 3 -->
    Description: <%= Html.TextBox("Image.Description")%><br />
    <input type="submit" value="Save" />
    <% } %>

</asp:Content>
